<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
#login_container {
	width: 180px;
	height: 68px;
	z-index: 1;
}
</style>
<script type="text/javascript">
function login(){
	var f = document.login_form;
	if (!f.id.value) {
		alert("아이디를 입력하세요");
		f.id.focus();
		return;
	}
	if (!f.pw.value) {
		alert("패스워드를 입력하세요");
		f.pw.focus();
		return;
	}
	f.action = "<%=cp%>/login/login_ok.jsp";
	f.submit();
}
</script>
</head>
<body>
	<div id="login_container">
		<form id="login_form" name="login_form" method="get" action="">
			<input type="text" style='color: gray;' onfocus="this.value=''"
				name="id" value="아이디" width="170px" /> <br /> 
				<input type="text" style='color: gray;' onfocus="this.value=''" 
				name="pw" value="패스워드" width="170px" /> <br /> 
				<input type="button" value="로그인" onclick="login();" /> 
				<input type="button" value="회원가입" 
				onclick="javascript:location.href='<%=cp%>/login/register.jsp';"/>
		</form>
	</div>
</body>
</html>
